package com.lcb.order.service;

import com.lcb.common.utils.BaseResponse;
import com.lcb.order.entity.TOrder;
import org.springframework.web.bind.annotation.*;

/****
 * @Author:lcb
 * @Description:TOrder业务层接口
 * @Date: 2021-01-28 11:24:58
 *****/
public interface TOrderService {

    /***
     * TOrder多条件分页查询
     * @param tOrder
     * @param page
     * @param size
     * @return
     */
    @GetMapping("/findTOrderList/{page}/{size}")
    BaseResponse findTOrderList(@RequestBody TOrder tOrder, @PathVariable(value = "page") int page, @PathVariable(value = "size") int size);

    /***
     * 删除TOrder
     * @param ids
     */
    @DeleteMapping("/deleteTOrderById/{ids}")
    BaseResponse deleteTOrderById(@PathVariable(value = "ids") String ids);

    /***
     * 修改TOrder数据
     * @param tOrder
     */
    @PutMapping("/updateTOrder")
    BaseResponse updateTOrder(@RequestBody TOrder tOrder);

    /***
     * 新增TOrder
     * @param tOrder
     */
    @PostMapping("/addTOrder")
    BaseResponse addTOrder(@RequestBody TOrder tOrder);

    /**
     * 根据ID查询TOrder
     * @param id
     * @return
     */
    @GetMapping("/findTOrderById/{id}")
    BaseResponse findTOrderById(@PathVariable("id") Long id);

    /***
     * 查询所有TOrder
     * @return
     */
    @GetMapping("/findTOrderAll")
    BaseResponse findTOrderAll();
}
